<%-- 
    Document   : Login
    Created on : 03-ago-2013, 16:58:22
    Author     : kriss
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
            String context = request.getContextPath();
            String mensaje = (String) request.getAttribute("mensaje");
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
    <head>
        <!--  Created by Artisteer v3.0.0.32906  Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"  -->
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <%=request.getContextPath()%>
        <title>Sistema de Control de Reservaciones CCS</title>
        <link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css" type="text/css" media="screen" />
        <link href="<%=request.getContextPath()%>/menu_assets/styles.css" rel="stylesheet" type="text/css"/>
        
            <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
            <script type="text/javascript" src="<%=request.getContextPath()%>/js/script.js"></script>
    </head>
    <body onload="history.forward(0)">



        <div id="art-page-background-glare">
            <div id="art-page-background-glare-image">
                <div id="art-main">
                    <div class="art-sheet">

                        <div class="art-sheet-body">
                            <div class="art-header">
                                <div class="art-header-center">
                                    <div class="art-header-png"></div>
                                    <div class="art-header-jpeg"></div>
                                </div>
                                <div class="art-logo">
                                    <h1 id="name-text" class="art-logo-name"><a href="../index.html"></a></h1>
                                    <h2 id="slogan-text" class="art-logo-text"></h2>
                                </div>
                            </div>
                            <div class="art-nav">
                                <div class="l"></div>
                                <div class="r"></div>
                                <ul class="art-menu">
                                </ul>
                            </div>
                             <div class="art-content-layout">
                                <div class="art-content-layout-row">
                                    <div class="art-layout-cell art-sidebar1">
                                        <div class="art-layout-bg"></div>
                                        <div class="art-layout-glare">
                                            <div class="art-layout-glare-image"></div>
                                        </div>
                                        <div class="art-block">
                                            <div class="art-block-body" style="margin-top:60px;">
                                                <div class="art-blockheader">
                                                    <h3 class="t">Login</h3>
                                                </div>
                                                <div class="art-blockcontent">
                                                    <div class="art-blockcontent-body">
                                                        <div>
                                                            <form method="post" name="searchform" action="<%=request.getContextPath()%>/ServletLogin" enctype="application/x-www-form-urlencoded">
                                                                <%=(mensaje != null ? mensaje : "")+"<br>"%>
                                                                 <input type="hidden" name="accion" value="IniciarSesion"/>
                                                                Usuario:
                                                                <input type="text" value="" id="usuario" name="usuario" style="width: 95%;"/>
                                                                Contraseña:
                                                                <input type="password" value="" id="contrasena" name="contrasena" style="width: 95%;"/>
                                                                <span class="art-button-wrapper" style="margin-left:30px; margin-top:10px;">
                                                                    <span class="art-button-l"> </span><span class="art-button-r"> </span>
                                                                    <a class="art-button"  onclick="validarUsuario()">Iniciar sesión</a>
                                                                </span>
                                                            </form>
                                                        </div>
                                                        <div class="cleared"></div>
                                                        <div class="cleared"></div>
                                                    </div>
                                                </div>
                                                <div class="cleared"></div>
                                            </div>
                                        </div>

                                        <div class="cleared"></div>
                                    </div>

                                </div>
                            </div>
                            <div class="cleared"></div>
                            <div class="art-footer">
                                <div class="art-footer-t"></div>
                                <div class="art-footer-l"></div>
                                <div class="art-footer-b"></div>
                                <div class="art-footer-r"></div>
                                <div class="art-footer-body">
                                    <div class="art-footer-text">

                                        <p>Universidad Tecnològica Emiliano Zapata Av.Universidad Tecnològica No.1, Col. Palo Escrito, C.P.62760, Emiliano Zapata, Morelos.</p>
                                        <p>Tel.(01777) 368-11-65 Ext.270 jonathanaguilar@utez.edu</p>
                                    </div>
                                    <div class="cleared"></div>
                                </div>
                            </div>
                            <div class="cleared"></div>
                        </div>
                    </div>
                    <div class="cleared"></div>

                </div>
            </div>
        </div>

        <form id="form1" name="form1" action="index.html">

        </form>
    </body>
</html>
<script language="JavaScript" type="text/javascript">
    function validarUsuario(){

        document.searchform.submit();
    }
</script>